#!/usr/bin/env python3
# coding=utf-8

import numpy as np
import plotly.express as px

x = np.array(range(-50, 50, 1))
y = np.zeros(100, dtype=float)

k = 0
for i in x:
    y[k] = i * i
    k = k + 1

print(x)
print(y)

fig = px.line(x=x, y=y, title='y=x^2')
fig.show()						# 展示图表
